﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F35 RID: 3893
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicGameUnit : IMessage<RogueMagicGameUnit>, IMessage, IEquatable<RogueMagicGameUnit>, IDeepCloneable<RogueMagicGameUnit>, IBufferMessage
	{
		// Token: 0x1700317B RID: 12667
		// (get) Token: 0x0600AEBA RID: 44730 RVA: 0x001D8D54 File Offset: 0x001D6F54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicGameUnit> Parser
		{
			get
			{
				return RogueMagicGameUnit._parser;
			}
		}

		// Token: 0x1700317C RID: 12668
		// (get) Token: 0x0600AEBB RID: 44731 RVA: 0x001D8D5B File Offset: 0x001D6F5B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicGameUnitReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700317D RID: 12669
		// (get) Token: 0x0600AEBC RID: 44732 RVA: 0x001D8D6D File Offset: 0x001D6F6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicGameUnit.Descriptor;
			}
		}

		// Token: 0x0600AEBD RID: 44733 RVA: 0x001D8D74 File Offset: 0x001D6F74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGameUnit()
		{
		}

		// Token: 0x0600AEBE RID: 44734 RVA: 0x001D8D7C File Offset: 0x001D6F7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGameUnit(RogueMagicGameUnit other) : this()
		{
			this.magicUnitId_ = other.magicUnitId_;
			this.level_ = other.level_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AEBF RID: 44735 RVA: 0x001D8DAD File Offset: 0x001D6FAD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGameUnit Clone()
		{
			return new RogueMagicGameUnit(this);
		}

		// Token: 0x1700317E RID: 12670
		// (get) Token: 0x0600AEC0 RID: 44736 RVA: 0x001D8DB5 File Offset: 0x001D6FB5
		// (set) Token: 0x0600AEC1 RID: 44737 RVA: 0x001D8DBD File Offset: 0x001D6FBD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MagicUnitId
		{
			get
			{
				return this.magicUnitId_;
			}
			set
			{
				this.magicUnitId_ = value;
			}
		}

		// Token: 0x1700317F RID: 12671
		// (get) Token: 0x0600AEC2 RID: 44738 RVA: 0x001D8DC6 File Offset: 0x001D6FC6
		// (set) Token: 0x0600AEC3 RID: 44739 RVA: 0x001D8DCE File Offset: 0x001D6FCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x0600AEC4 RID: 44740 RVA: 0x001D8DD7 File Offset: 0x001D6FD7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicGameUnit);
		}

		// Token: 0x0600AEC5 RID: 44741 RVA: 0x001D8DE5 File Offset: 0x001D6FE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicGameUnit other)
		{
			return other != null && (other == this || (this.MagicUnitId == other.MagicUnitId && this.Level == other.Level && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AEC6 RID: 44742 RVA: 0x001D8E24 File Offset: 0x001D7024
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MagicUnitId != 0U)
			{
				num ^= this.MagicUnitId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AEC7 RID: 44743 RVA: 0x001D8E7C File Offset: 0x001D707C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AEC8 RID: 44744 RVA: 0x001D8E84 File Offset: 0x001D7084
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AEC9 RID: 44745 RVA: 0x001D8E90 File Offset: 0x001D7090
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Level);
			}
			if (this.MagicUnitId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.MagicUnitId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AECA RID: 44746 RVA: 0x001D8EEC File Offset: 0x001D70EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MagicUnitId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MagicUnitId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AECB RID: 44747 RVA: 0x001D8F44 File Offset: 0x001D7144
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicGameUnit other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MagicUnitId != 0U)
			{
				this.MagicUnitId = other.MagicUnitId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AECC RID: 44748 RVA: 0x001D8F94 File Offset: 0x001D7194
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AECD RID: 44749 RVA: 0x001D8FA0 File Offset: 0x001D71A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MagicUnitId = input.ReadUInt32();
					}
				}
				else
				{
					this.Level = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040046DA RID: 18138
		private static readonly MessageParser<RogueMagicGameUnit> _parser = new MessageParser<RogueMagicGameUnit>(() => new RogueMagicGameUnit());

		// Token: 0x040046DB RID: 18139
		private UnknownFieldSet _unknownFields;

		// Token: 0x040046DC RID: 18140
		public const int MagicUnitIdFieldNumber = 14;

		// Token: 0x040046DD RID: 18141
		private uint magicUnitId_;

		// Token: 0x040046DE RID: 18142
		public const int LevelFieldNumber = 7;

		// Token: 0x040046DF RID: 18143
		private uint level_;
	}
}
